public class Director extends Approver{
    public void processRequest(PurchaseRequest request) {
        if (request.getAmount() <= 50000 && request.getAmount() > 0) {
            System.out.println("主任审批了：" + request);
        } else if (successor != null) {
            successor.processRequest(request);
        } else {
            System.out.println("主任无法审批，请重新提交申请！");
        }
    }
}
